package io.adrainty.bolee.insurance.models.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.adrainty.bolee.framework.commons.basic.BaseEntity;
import io.adrainty.bolee.framework.commons.basic.EnableEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.io.Serial;

/**
 * <p>CoefficientEntity</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description 保障项系数
 * @since 2025/8/11 10:34:53
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "保障项系数")
@EqualsAndHashCode(callSuper = true)
public class CoefficientEntity extends BaseEntity {

    @Serial
    private static final long serialVersionUID = -3046135165013970441L;

    @Schema(description = "系数项key:bznx")
    @JsonProperty("coefficentKey")
    private String coefficientKey;

    @Schema(description = "系数项名称:保障年限")
    @JsonProperty("coefficentKeyName")
    private String coefficientKeyName;

    @Schema(description = "系数项值")
    @JsonProperty("coefficentVal")
    private String coefficientVal;

    @Schema(description = "排序")
    private Integer sortNo;

    @JsonProperty("coefficentType")
    @Schema(description = "系数项类型：0、选项系数1、范围类型")
    private String coefficientType;

    @Schema(description = "数据状态：0正常 1禁用")
    private EnableEnum dataState;

    @Schema(description = "批量操作：主键ID")
    private String[] checkedIds;

}
